package baiqitun.stupro.project.service.impl;

import baiqitun.stupro.common.service.support.MyServiceImpl;
import baiqitun.stupro.project.entity.SysProject;
import baiqitun.stupro.project.entity.SysProjectRole;
import baiqitun.stupro.project.mapper.SysProjectRoleMapper;
import baiqitun.stupro.project.service.SysProjectRoleService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 项目角色表 服务实现类
 * </p>
 *
 * @author kedaji
 * @since 2020-04-18
 */
@Service
public class SysProjectRoleServiceImpl extends MyServiceImpl<SysProjectRoleMapper, SysProjectRole> implements SysProjectRoleService {

    @Override
    public SysProjectRole getProjectRoleByCode(String code) {
        SysProjectRole queryRole = new SysProjectRole();
        queryRole.setCode(code);
        return getOne(new QueryWrapper<>(queryRole));
    }
}
